﻿// -------------------------------------------------------------------------
//    @FileName         :    NFServiceModule.h
//    @Author           :    Gao.Yi
//    @Date             :    2025-09-08
//    @Email			:    445267987@qq.com
//    @Module           :    NFServiceModule
//    @Desc             :
//
// -------------------------------------------------------------------------

#pragma once

#include "NFComm/NFCore/NFPlatform.h"
#include "NFLogicCommon/NFMMODynamicModule.h"
#include "NFLogicDynamicModule.h"

class NFServiceModule : public NFLogicDynamicModule
{
public:
    explicit NFServiceModule(NFIPluginManager* p);

    ~NFServiceModule() override;

public:
    // 虚函数，用于初始化对象
    int Awake() override;

    int OnHandleClientMessage(NFDataPackage& packet, NFSession* pSession, const proto_ff::Proto_CSReq& req) override;

    int OnHandleServerMessage(uint32_t msgId, NFDataPackage& packet, uint64_t param1, uint64_t param2) override;

    int OnHandleBroadSysMsgNtf(uint32_t msgId, NFDataPackage& packet, uint64_t param1, uint64_t param2);
public:
    int OnHandleGetOpenServerDaysReq(NFDataPackage& packet, NFSession* pSession, const proto_ff::Proto_CSReq& csReq);
};
